package com.cxm.weilai.config;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @program: weilai-cloud
 * @description:
 * @author: ChenMan
 * @create: 2019-04-04 11:37
 */
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  @Override
  protected void configure(HttpSecurity http) throws Exception {
      // 关闭security
      super.configure(http);
    http.csrf().disable();


      // 不校验
//      http.authorizeRequests().anyRequest().permitAll().and().logout().permitAll();
  }
}
